

#ifndef b_p
#define b_p
#include <string>

# include "camera_reader.h"
# include "image.h"
# include "image_processor.h"
# include "init_systems.h"
# include "jpeg_buffer.h"
# include "printfstring.h"
# include "log.h"
# include "time_tools.h"

using namespace std;
using namespace kthrobot;

class basic_processor : public ProcessingTask {

public:

  int image_no_;

  basic_processor() : image_no_(0) {}

  virtual ~basic_processor() {}

  void ProcessImage( Image *image ) {
    string file_name = PrintFString("image_dlink_%d.ppm", image_no_);
    image->SavePPM(file_name);
    Log::Write("We saved this image: %s", file_name.c_str());
    ++image_no_;
  }

};
#endif
